package TWO;
class Cone extends AbstractT{
	private double r;
	private double h;
	public Cone(double r,double h){
		this.r=r;
		this.h=h;
	}
	public double getS(){
		return(3.14*r*Math.sqrt(r*r+h*h)+3.14*r*r);
	}
	public double getV(){
		return(3.14*r*r*h/3);
	}
}